package com.ruoyi.creditlife.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 信用生活行为记录对象 credit_life_behavior
 * 
 * @author ddd
 * @date 2025-06-30
 */
public class CreditLifeBehavior extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 服务类型ID */
    @Excel(name = "服务类型ID")
    private Long serviceType;

    /** 行为类型(图书借阅/便捷泊车等) */
    @Excel(name = "行为类型(图书借阅/便捷泊车等)")
    private String behaviorType;

    /** 发生地点 */
    @Excel(name = "发生地点")
    private String location;

    /** 涉及金额 */
    @Excel(name = "涉及金额")
    private BigDecimal amount;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态:进行中/已完成/已逾期 */
    @Excel(name = "状态:进行中/已完成/已逾期")
    private String status;

    /** 信用分影响 */
    @Excel(name = "信用分影响")
    private Long creditImpact;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setServiceType(Long serviceType) 
    {
        this.serviceType = serviceType;
    }

    public Long getServiceType() 
    {
        return serviceType;
    }

    public void setBehaviorType(String behaviorType) 
    {
        this.behaviorType = behaviorType;
    }

    public String getBehaviorType() 
    {
        return behaviorType;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreditImpact(Long creditImpact) 
    {
        this.creditImpact = creditImpact;
    }

    public Long getCreditImpact() 
    {
        return creditImpact;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("serviceType", getServiceType())
            .append("behaviorType", getBehaviorType())
            .append("location", getLocation())
            .append("amount", getAmount())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("creditImpact", getCreditImpact())
            .toString();
    }
}
